<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="cloudbilling_v1beta.html">Cloud Billing API</a> . <a href="cloudbilling_v1beta.projects.html">projects</a> . <a href="cloudbilling_v1beta.projects.anomalies.html">anomalies</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets an anomaly for a billing account or a project.</p>
<p class="toc_element">
  <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists anomalies for a billing account or a project.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="get">get(name, x__xgafv=None)</code>
  <pre>Gets an anomaly for a billing account or a project.

Args:
  name: string, Required. Format for project: projects/{project}/anomalies/{anomalies}. Format for billing account: billingAccounts/{billing_account}/anomalies/{anomalies}. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Encapsulates an anomaly.
  &quot;detectionTime&quot;: &quot;A String&quot;, # Time that the anomaly was detected. Will be set to 00:00 google time of the detected date.
  &quot;deviation&quot;: { # Encapsulates the deviation information. # Deviation information of the anomaly.
    &quot;actualSpend&quot;: { # Represents an amount of money with its currency type. # The actual spend for the anomaly.
      &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
      &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
      &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
    },
    &quot;deviationAmount&quot;: { # Represents an amount of money with its currency type. # The difference between the actual spend and expected spend&#x27;s upper bound. Calculation formula: deviation_amount = actual_spend - expected_spend.
      &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
      &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
      &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
    },
    &quot;deviationPercentage&quot;: 3.14, # The percentage of devition amount from expected spend&#x27;s upper bound. Calculation formula: deviation_percentage = divation_amount / expected_spend * 100.
    &quot;expectedSpend&quot;: { # Represents an amount of money with its currency type. # The expected spend for the anomaly.
      &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
      &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
      &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
    },
  },
  &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name for the anomaly.
  &quot;resourceDisplayName&quot;: &quot;A String&quot;, # The display name of the resource that the anomaly occurred in/belongs to.
  &quot;rootCauses&quot;: [ # A list of causes which contribute to the anomaly.
    { # Encapsulates the information of the reason which caused the anomaly.
      &quot;causeType&quot;: &quot;A String&quot;, # The cause type.
      &quot;deviation&quot;: { # Encapsulates the deviation information. # The deviation information for the cause.
        &quot;actualSpend&quot;: { # Represents an amount of money with its currency type. # The actual spend for the anomaly.
          &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
          &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
          &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
        },
        &quot;deviationAmount&quot;: { # Represents an amount of money with its currency type. # The difference between the actual spend and expected spend&#x27;s upper bound. Calculation formula: deviation_amount = actual_spend - expected_spend.
          &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
          &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
          &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
        },
        &quot;deviationPercentage&quot;: 3.14, # The percentage of devition amount from expected spend&#x27;s upper bound. Calculation formula: deviation_percentage = divation_amount / expected_spend * 100.
        &quot;expectedSpend&quot;: { # Represents an amount of money with its currency type. # The expected spend for the anomaly.
          &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
          &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
          &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
        },
      },
      &quot;displayName&quot;: &quot;A String&quot;, # The display name of the cause.
      &quot;resource&quot;: &quot;A String&quot;, # The resource name of the cause. project: projects/{project}. service: services/{service}. sku: services/{service}/skus/{sku}.
      &quot;subCauses&quot;: [ # The sub causes.
        # Object with schema name: GoogleCloudBillingAnomaliesV1betaCause
      ],
    },
  ],
  &quot;scope&quot;: &quot;A String&quot;, # Indicate the scope of the anomaly.
  &quot;severity&quot;: &quot;A String&quot;, # Severity of the anomaly. Unspecified if severity is not met/assigned.
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The most recent anomaly&#x27;s last updated time.
}</pre>
</div>

<div class="method">
    <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
  <pre>Lists anomalies for a billing account or a project.

Args:
  parent: string, Required. The project to list Anomaly for the project. Format for project: projects/{project}. Format for billing account: billingAccounts/{billing_account}. (required)
  filter: string, Optional. Options for how to filter the anomalies. Currently, only filter on `start_time` and `end_time` is supported. Only =, AND operators are supported. If start_time and/or end_time empty, we only retrieve the most recent 30 days&#x27; anomalies. Examples: - start_time = &quot;20231201&quot; AND end_time = &quot;20240120&quot; .
  pageSize: integer, Optional. Maximum number of anomalies to return. Results may return fewer than this value. Default value is 50 and maximum value is 1000.
  pageToken: string, Optional. Page token received from a previous ListAnomalies call to retrieve the next page of results. If this field is empty, the first page is returned.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for ListAnomalies.
  &quot;anomalies&quot;: [ # The returned anomalies.
    { # Encapsulates an anomaly.
      &quot;detectionTime&quot;: &quot;A String&quot;, # Time that the anomaly was detected. Will be set to 00:00 google time of the detected date.
      &quot;deviation&quot;: { # Encapsulates the deviation information. # Deviation information of the anomaly.
        &quot;actualSpend&quot;: { # Represents an amount of money with its currency type. # The actual spend for the anomaly.
          &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
          &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
          &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
        },
        &quot;deviationAmount&quot;: { # Represents an amount of money with its currency type. # The difference between the actual spend and expected spend&#x27;s upper bound. Calculation formula: deviation_amount = actual_spend - expected_spend.
          &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
          &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
          &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
        },
        &quot;deviationPercentage&quot;: 3.14, # The percentage of devition amount from expected spend&#x27;s upper bound. Calculation formula: deviation_percentage = divation_amount / expected_spend * 100.
        &quot;expectedSpend&quot;: { # Represents an amount of money with its currency type. # The expected spend for the anomaly.
          &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
          &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
          &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
        },
      },
      &quot;name&quot;: &quot;A String&quot;, # Identifier. Resource name for the anomaly.
      &quot;resourceDisplayName&quot;: &quot;A String&quot;, # The display name of the resource that the anomaly occurred in/belongs to.
      &quot;rootCauses&quot;: [ # A list of causes which contribute to the anomaly.
        { # Encapsulates the information of the reason which caused the anomaly.
          &quot;causeType&quot;: &quot;A String&quot;, # The cause type.
          &quot;deviation&quot;: { # Encapsulates the deviation information. # The deviation information for the cause.
            &quot;actualSpend&quot;: { # Represents an amount of money with its currency type. # The actual spend for the anomaly.
              &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
              &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
              &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
            },
            &quot;deviationAmount&quot;: { # Represents an amount of money with its currency type. # The difference between the actual spend and expected spend&#x27;s upper bound. Calculation formula: deviation_amount = actual_spend - expected_spend.
              &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
              &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
              &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
            },
            &quot;deviationPercentage&quot;: 3.14, # The percentage of devition amount from expected spend&#x27;s upper bound. Calculation formula: deviation_percentage = divation_amount / expected_spend * 100.
            &quot;expectedSpend&quot;: { # Represents an amount of money with its currency type. # The expected spend for the anomaly.
              &quot;currencyCode&quot;: &quot;A String&quot;, # The three-letter currency code defined in ISO 4217.
              &quot;nanos&quot;: 42, # Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be positive or zero. If `units` is zero, `nanos` can be positive, zero, or negative. If `units` is negative, `nanos` must be negative or zero. For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
              &quot;units&quot;: &quot;A String&quot;, # The whole units of the amount. For example if `currencyCode` is `&quot;USD&quot;`, then 1 unit is one US dollar.
            },
          },
          &quot;displayName&quot;: &quot;A String&quot;, # The display name of the cause.
          &quot;resource&quot;: &quot;A String&quot;, # The resource name of the cause. project: projects/{project}. service: services/{service}. sku: services/{service}/skus/{sku}.
          &quot;subCauses&quot;: [ # The sub causes.
            # Object with schema name: GoogleCloudBillingAnomaliesV1betaCause
          ],
        },
      ],
      &quot;scope&quot;: &quot;A String&quot;, # Indicate the scope of the anomaly.
      &quot;severity&quot;: &quot;A String&quot;, # Severity of the anomaly. Unspecified if severity is not met/assigned.
      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The most recent anomaly&#x27;s last updated time.
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # Token that can be sent as `page_token` in the subsequent request to retrieve the next page. If this field is empty, there are no subsequent pages.
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

</body></html>